Skip to main content
Sequence Wallets support ERC-1271 Standard Contract Signature Verification to allow signing of transactions and messages.

ERC-191 Ethereum Signed Data

Messages encoded with as ERC-191 Ethereum Signed Data are able to be created and signed as follows.
The above will iterate through local, signing the message. If the threshold is reached, the signature is returned. Otherwise the library will iterate through the remote signers as well. The resulting signatures are joined and encoded as a hex string.

ERC-712 Structured Data Signatures

ERC-712 Structured Data can also be signed in a similar fashion.
The above will iterate through local, signing the message. If the threshold is reached, the signature is returned. Otherwise the library will iterate through the remote signers as well. The resulting signatures are joined and encoded as a hex string.

Verification

The signature can be verified by calling the isValidSignature method on the wallet.
This will iterate through the combined signatures and validate that the resulting signature breaches the wallet’s threshold.